function add() {

   var a = $("#yiyuan").val();
   var b = $("#lianxiren").val();
   var c = $("#caigoudanmingcheng").val();
   var d = $("#lianxifangshi").val();
   var e = $("#beizhu").val();
   var f = $("#gonghuo").val();
    $.ajax({
        url: "/myspringboot/purchasement/addpurchase",
        data:{
            hName:a,
            poContacts:b,
            poName:c,
            poPhone:d,
            poRemarks:e,
            poSupplyTime:f,
        },
        type: "post",
        dataType: "json",
        success: function (result) {

        }
    })
}


function addd() {
    //var v = $("#xiugai").serialize();  //序列化表单
     //alert(v)
    var a = $("#yiyuan1").val();
    var b = $("#lianxiren1").val();
    var c = $("#caigoudanmingcheng1").val();
    var d = $("#lianxifangshi1").val();
    var e = $("#beizhu1").val();
    var f = $("#gonghuo1").val();
    var e = $("#yiyuan2").val();
    $.ajax({
        url: "/myspringboot/purchasement/updatalala",
        data:{
            hName:a,
            poContacts:b,
            poName:c,
            poPhone:d,
            poRemarks:e,
            poSupplyTime:f,
            poid:e,
        },
        type: "post",
        dataType: "json",
        success: function (result) {

        }
    })
}